package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.DepartmentDTO;
/**
 * @author ysz
 */
public interface DepartmentDao {

    int insertSelective(DepartmentDTO record);
    DepartmentDTO selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(DepartmentDTO record);
    List<DepartmentDTO> selectAll();
    List<DepartmentDTO> selectAllByDepartmentNameLike(@Param("departmentName") String departmentName);
    int updateIsDeletedByIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("idCollection")Collection<Integer> idCollection);
    DepartmentDTO findOneByDepartmentName(@Param("departmentName")String departmentName);

}
